import Vue from 'vue'
import VueRouter from 'vue-router'
import ListView from "@/views/ListView.vue";
import CarView from "@/views/CarView.vue";
import CsView from "@/views/CsView.vue";
import PlyerView from "@/views/PlyerView.vue";
Vue.use(VueRouter)

const routes = [
  {
    path: '/list',
    name: 'list',
    component: ListView
  },
  {
    path: '/',
    name: 'plyer',
    component: PlyerView
  },
  {
    path: '/car',
    name: 'car',
    component: CarView
  },
  {
    path: '/cs',
    name: 'cs',
    component: CsView
  },
  {
    path: '/about',
    name: 'about',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/AboutView.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
